﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeDuce.IDAL;
using System.Data;

namespace SeDuce.BLL
{
    public class NewsBLL
    {
        private static readonly INewsDAL dal = SeDuce.DALFactory.DataAccess.CreateNewsDAL();

        public DataTable GetNews()
        {
            return dal.GetNews();
        }

        public DataTable GetNewsByID(int id)
        {
            return dal.GetNewsByID(id);
        }

        public DataTable GetNewsTop(int num)
        {
            return dal.GetNewsTop(num);
        }

        public DataTable GetNewsInGallery()
        {
            return dal.GetNewsInGallery();
        }

        public DataTable GetNewsIsHeadline(int num)
        {
            return dal.GetNewsIsHeadline(num);
        }

        public DataTable GetNewsTypes()
        {
            return dal.GetNewsTypes();
        }

        public bool UpdateNews(SeDuce.Model.News news)
        {
            return dal.UpdateNews(news);
        }

        public bool InsertNews(SeDuce.Model.News news)
        {
            return dal.InsertNews(news);
        }

        public bool DeleteNews(int ID)
        {
            return dal.DeleteNews(ID);
        }

        public bool DeleteNews(List<int> IDs)
        {
            return dal.DeleteNews(IDs);
        }
    }
}
